<?php
$DefSelect = '------------------------ Todos ------------------------';
form_pr('QueryPayOrders', '', '', 'post');
?>
<div style="height:124px;background-color:#F2F2F2">
    <label style="position:absolute;top:14px;left:10px">Periodo:</label>
    <div style="position:absolute;top:10px;left:80px"><?php
echo 'De: ';
mn_field('date', 'ED', 'TStart', '', 'QueryPayOrders', 8, '', '');
echo ' a: ';
mn_field('date', 'ED', 'TEnd', '', 'QueryPayOrders', 8, '', ''); ?></div>
    <label style="position:absolute;top:54px;left:10px">Corresp.</label>
    <?php $Qur = "SELECT CorrNumero AS ID, CorrNombre AS NAME
		  		FROM corresponsales WHERE CorrActivo = 1";
    mn_field('select', 'ED', 'FraCorresponsal', $Corresponsal, $Qur, $DefSelect, '', '" style="width:300px;position:absolute;top:50px;left:80px'); ?>
    <label style="position:absolute;top:74px;left:10px">Estado</label>
<?php $Qur = "------------------------ Todos ------------------------;Por Enviar;Enviado# ;0;1";
    mn_field('hselect', 'ED', 'Op_Enviada', $Status, $Qur, $DefSelect, '', '" style="width:300px;position:absolute;top:70px;left:80px'); ?>
    <label style="position:absolute;top:94px;left:10px">Canal</label>
<?php $Qur = "------------------------ Todos ------------------------;Saida;Entrada# ;1;2";
    mn_field('hselect', 'ED', 'Op_Modo', 1, $Qur, $DefSelect, '', '" style="width:300px;position:absolute;top:90px;left:80px'); ?>

    <label style="position:absolute;top:12px;left:390px">Ordem</label>	 <?php mn_field('checkbox', 'ED', 'VIEWColumns[]', 'CliNombre', '', '', '', '" style="position:absolute;top:10px;left:490px'); ?>
    <label style="position:absolute;top:30px;left:390px">Data</label>	 <?php mn_field('checkbox', 'ED', 'VIEWColumns[]', 'FraCorresponsal', '', '', '', '" style="position:absolute;top:28px;left:490px'); ?>
    <label style="position:absolute;top:48px;left:390px">TransmissÃo</label>	 <?php mn_field('checkbox', 'ED', 'VIEWColumns[]', 'BnfNombre', '', '', '', '" style="position:absolute;top:46px;left:490px'); ?>
    <label style="position:absolute;top:66px;left:390px">Utilizador</label>	 <?php mn_field('checkbox', 'ED', 'VIEWColumns[]', 'FraTasa', 'checked', '', '', '" style="position:absolute;top:64px;left:490px'); ?>
    <label style="position:absolute;top:82px;left:390px">Correspondente</label>	 <?php mn_field('checkbox', 'ED', 'VIEWColumns[]', 'FraOrigen0', '', '', '', '" style="position:absolute;top:82px;left:490px'); ?>
    <label style="position:absolute;top:12px;left:520px">Estado</label>	 <?php mn_field('checkbox', 'ED', 'VIEWColumns[]', 'FraStatus', 'checked', '', '', '" style="position:absolute;top:10px;left:640px'); ?>

    <label style="position:absolute;top:12px;left:820px">Ordenar por:</label>
    <?php
    mn_field('hselect', 'ED', 'OrderBy1', '', 'Ordem;Data#Op_Orden;Op_Fecha', '', '', '" style="position:absolute;top:30px;left:820px');
    mn_field('mselect', 'ED', 'OrderAD1', 'ASC', "ASC;DESC#ASC;DESC", '1', '', '" style="position:absolute;top:30px;left:898px');

    mn_field('button', 'ED', 'QueryPayOrders', 'Consultar', '', '', '', '" style="width:100px;position:absolute;top:110px;left:735px" onClick="
	document.QueryPayOrders.action=\'Modules/FTK9D4D0/Lib/a05_gestpayorder.mex\';
	subform(\'QueryPayOrders\',\'ConsolePay\');
	replaceUrl(\'ConsolePayRS\',\'Modules/FTK9D4D0/Lib/a05_elem_trans.mex\');');
    ?>
    <div id="SUMS_POR" style="position:absolute;top:110px;left:390px"><?php include($MODPAD . 'Lib/a05_PAYGridStatus.mex'); ?></div>
</div>
</form>
<div id="ConsolePayRS"></div>